package cn.jingyuan.swan.system.web.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Slf4j
@Configuration
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring()
            .antMatchers("/favicon.ico")
            .antMatchers("/error")
            .antMatchers("/static/**")
            .antMatchers("/resources/**")
            .antMatchers("/webjars/**")
            .antMatchers("/druid/**")
        ;
    }

}
